package com.wangshidai.atm.entity;

public class Account {  //自定义类Account类
     private   String cardNum;
     private  String password;
     private String ruleName;
     private double money;
     private String createDate;

     public Account() {
     }

     public Account(String cardNum, String password, String ruleName, double money, String createDate) {
          this.cardNum = cardNum;
          this.password = password;
          this.ruleName = ruleName;
          this.money = money;
          this.createDate = createDate;
     }

     public String getCardNum() {
          return cardNum;
     }

     public void setCardNum(String cardNum) {
          this.cardNum = cardNum;
     }

     public String getPassword() {
          return password;
     }

     public void setPassword(String password) {
          this.password = password;
     }

     public String getRuleName() {
          return ruleName;
     }

     public void setRuleName(String ruleName) {
          this.ruleName = ruleName;
     }

     public double getMoney() {
          return money;
     }

     public void setMoney(double money) {
          this.money = money;
     }

     public String getCreateDate() {
          return createDate;
     }

     public void setCreateDate(String createDate) {
          this.createDate = createDate;
     }

     @Override
     public String toString() {
          return "Account{" +
                  "cardNum='" + cardNum + '\'' +
                  ", password='" + password + '\'' +
                  ", ruleName='" + ruleName + '\'' +
                  ", money=" + money +
                  ", createDate='" + createDate + '\'' +
                  '}';
     }
}
